#ifndef __WWDG_H__
#define __WWDG_H__

#include <stm32f10x.h>

/* 参数说明：
 * Counter：计数器初值
 * WindowValue：窗口值
 * WWDG_Prescaler：预分频系数
 *     @arg WWDG_Prescaler_1: WWDG counter clock = (PCLK1/4096)/1
 *     @arg WWDG_Prescaler_2: WWDG counter clock = (PCLK1/4096)/2
 *     @arg WWDG_Prescaler_4: WWDG counter clock = (PCLK1/4096)/4
 *     @arg WWDG_Prescaler_8: WWDG counter clock = (PCLK1/4096)/8
 */
void wwdg_init(u8 Counter, u8 WindowValue, u32 WWDG_Prescaler);

#endif
